IF NOT EXIST NavBenchmark.zip GOTO CHECKDIR
   del NavBenchmark.zip

:CHECKDIR
IF NOT EXIST NavBenchmark GOTO CONTINUE
   rmdir NavBenchmark /S /Q

:CONTINUE
mkdir NavBenchmark
mkdir NavBenchmark\x64
copy ..\..\x64\Release\NavBenchmark.exe NavBenchmark\x64\NavBenchmark.exe
copy ..\..\x64\Release\NavBenchmark.exe.config NavBenchmark\x64\NavBenchmark.exe.config
copy ..\..\x64\Release\NavBenchmarkClient.dll NavBenchmark\x64\NavBenchmarkClient.dll
copy ..\..\x64\Release\CmdLine.dll NavBenchmark\x64\CmdLine.dll
copy ..\..\x64\Release\Microsoft.Robotics.Vision.Interop.dll NavBenchmark\x64\Microsoft.Robotics.Vision.Interop.dll
copy ..\..\x64\Release\Microsoft.Robotics.Vision.Native.dll NavBenchmark\x64\Microsoft.Robotics.Vision.Native.dll
xcopy data\GroundTruthExtraction NavBenchmark\x64\data\GroundTruthExtraction\* /s

mkdir NavBenchmark\x86
copy ..\..\x86\Release\NavBenchmark.exe NavBenchmark\x86\NavBenchmark.exe
copy ..\..\x86\Release\NavBenchmark.exe.config NavBenchmark\x86\NavBenchmark.exe.config
copy ..\..\x86\Release\NavBenchmarkClient.dll NavBenchmark\x86\NavBenchmarkClient.dll
copy ..\..\x86\Release\CmdLine.dll NavBenchmark\x86\CmdLine.dll
copy ..\..\x86\Release\Microsoft.Robotics.Vision.Interop.dll NavBenchmark\x86\Microsoft.Robotics.Vision.Interop.dll
copy ..\..\x86\Release\Microsoft.Robotics.Vision.Native.dll NavBenchmark\x86\Microsoft.Robotics.Vision.Native.dll
xcopy data\GroundTruthExtraction NavBenchmark\x86\data\GroundTruthExtraction\* /s

xcopy input NavBenchmark\input\* /s
xcopy docs NavBenchmark\docs\* /s

REM copy the sample solutions, projects and sources
mkdir NavBenchmark\samples
copy ..\..\..\src\Test\MobileRobots\PioneerNavBenchmarkClient.sln NavBenchmark\samples\PioneerNavBenchmarkClient.sln
mkdir NavBenchmark\samples\NavBenchmarkTcpClient
copy ..\..\..\src\Test\MobileRobots\NavBenchmarkTcpClient\NavBenchmarkTcpClient.cpp NavBenchmark\samples\NavBenchmarkTcpClient\NavBenchmarkTcpClient.cpp
copy ..\..\..\src\Test\MobileRobots\NavBenchmarkTcpClient\NavBenchmarkTcpClient.h NavBenchmark\samples\NavBenchmarkTcpClient\NavBenchmarkTcpClient.h
copy ..\..\..\src\Test\MobileRobots\NavBenchmarkTcpClient\NavBenchmarkTcpClient.vcxproj NavBenchmark\samples\NavBenchmarkTcpClient\NavBenchmarkTcpClient.vcxproj
mkdir NavBenchmark\samples\PioneerNavBenchmarkClient
copy ..\..\..\src\Test\MobileRobots\PioneerNavBenchmarkClient\PioneerNavBenchmarkClient.cpp NavBenchmark\samples\PioneerNavBenchmarkClient\PioneerNavBenchmarkClient.cpp
copy ..\..\..\src\Test\MobileRobots\PioneerNavBenchmarkClient\PioneerNavBenchmarkClient.vcxproj NavBenchmark\samples\PioneerNavBenchmarkClient\PioneerNavBenchmarkClient.vcxproj
